package com.ch.home.mapper.restDishMapper;

import com.ch.home.bean.DishHistory;
import com.ch.home.bean.DishLiterary;

import java.util.LinkedList;

/**
 * Created by CHEN on 2019/8/28.
 */
public interface DishLiteraryMapper {

    /**
     * 查询信息
     * @param dishLiterary
     * @return
     */
    LinkedList<DishLiterary> getDishLiterary(DishLiterary dishLiterary);

    /**
     * 拿到连表查询的有关信息
     * @param dishLiterary
     * @return
     */
    LinkedList<DishLiterary> getDishLiteraryAndSource(DishLiterary dishLiterary);

    /**
     * 新增Dish
     * @param dishLiterary
     * @return
     */
    int addDishLiterary(DishLiterary dishLiterary);

    /**
     * 更新Dish
     * @param dishLiterary
     * @return
     */
    int updateDishLiterary(DishLiterary dishLiterary);

}
